package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.po.PointsRecord;
import com.tianji.learning.domain.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;

import java.util.List;

/**
 * <p>
 * 学习积分记录，每个月底清零 服务类
 * </p>
 *
 * @author wxh
 * @since 2024-08-29
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    /**
     * 学习问答积分消费
     *
     * @param userId
     * @param point  积分
     * @param type   获取积分的类型
     */
    void addPointsRecords(Long userId, int point, PointsRecordType type);

    /**
     * 查询每日积分
     *
     * @return
     */
    List<PointsStatisticsVO> queryEveryPoint();


}
